﻿using Cubicle.Core.Interfaces;

namespace Cubicle.Core.Processors
{
    public abstract class EventProcessor<T> : Processor<T>
    {
        public override IProcessor Parent
        {
            get { return base.Parent; }
            set
            {
                if (base.Parent != null) ProcessorEvent -= base.Parent.RaiseProcessorEvent;
                base.Parent = value;
                ProcessorEvent += base.Parent.RaiseProcessorEvent;
            }
        }
    }
}